APEX Script
-.icon
code:apexscript.py
for elem in array:
node = apex.graph.FindNode(graph, path=f"foo_{elem}")
Python ライクな構文で, ForEach や String Format などがいちいち Apex Node にせずとも自動で変換してくれる ここを見ると結構いろいろ省略できる記法が確認できる
code:_.py
# connect parent.xformout -> child.parent src_node = graph.findNode(parent_arrayi) dst_node = graph.findNode(child_arrayi) src_node.xform_out.connect(dst_node.parent)
https://gyazo.com/203faffdb72ce37498b93eaa41045cbb
code:_.py
foo = apex.graph.findNode(mygraph, "foo")
foo = mygraph.findNode("foo") # same
mygraph, foo = apex.graph.addNode(mygraph, "foo", "Add<Float>")
foo = mygraph.addNode("foo", "Add<Float>") # same